package practical_projects.games.submarine_war_v2;

public abstract class Submarine extends Weapon {

    public Submarine(int width, int height) {
        super(width, height);
    }

    @Override
    public void move() {
        x += speed;
    }

    @Override
    public boolean isOutBorder() {
        return x >= World.WIDTH;
    }
}
